package com.tandashi.springbootstudy01.security.shiro;

import lombok.Data;

import java.io.Serializable;
import java.security.Principal;

@Data
public class StudyPrincipal implements Principal, Serializable {
    private static final long serialVersionUID = -5596656550422301079L;

    private final String  unionid;
    private Long userId;
    private Integer userType;
    private String name;
    private ThirdPartyUser thirdPartyUser;
    private String agentCode;

    public StudyPrincipal(String unionid) {
        this.unionid = unionid;
    }

    @Override
    public String getName() {
        return null;
    }
}
